package com.medicalproject.service.impl;

import com.medical.pojo.CleaningTasks;
import com.medicalproject.mapper.CleaningTasksMapper;
import com.medicalproject.service.CleaningTasksService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class CleaningTasksServiceImpl implements CleaningTasksService {

    @Resource
    private CleaningTasksMapper cleaningTasksMapper;

    @Override
    public List<CleaningTasks> list() {
        return cleaningTasksMapper.list();
    }

    @Override
    public int add(CleaningTasks cleaningTasks) {
        return cleaningTasksMapper.add(cleaningTasks);
    }
}
